﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using System.Runtime.Serialization;
using System.Xml.Serialization;

namespace Zombie_Demo.Items
{
    [Serializable()]
    [XmlRoot("Item")]
    public abstract class Item
    {
        protected int itemID;
        protected string name;
        protected Texture2D icon;
        protected ItemType itemType;

        public string Name { get { return this.name; } set { this.name = value; } }
        public Texture2D Icon { get { return this.icon; } set { this.icon = value; } }
        public ItemType IType { get { return this.itemType; } set { this.itemType = value; } }
        public int ItemID { get { return this.itemID; } set { this.itemID = value; } }

        public enum ItemType { WEAPON, ARMOR}

        public Item(string name)
        {
            this.name = name;
        }

        public Item(string name, ItemType itemType, Texture2D icon)
        {
            this.name = name;
            this.itemType = itemType;
            this.icon = icon;
        }
    }
}
